export default {
  /**
   * 获取图层的关联接口
   * @param {*} layerId 图层id
   * @returns 
   */
  getLayerRelationInterface: function (layerId) {
    const url = agcim.net.apiPath.layer_config_selectNoPageByLayerId;
    const params = {
      layerId
    }
    return new Promise((resolve, reject) => {
      agcim.net.axiosWraper.getData(url, params).then(
        response => {
          if (response.success) {
            resolve(response);
          } else {
            reject(response);
          }
        },
        error => {
          reject(error);
        }
      );
    });
  },
};